-- GENERATED SPELL FOR [Silver Covenant Horseman] --


function spell0_30263(pUnit, Event) --@Concussive Shot,n/a--
pUnit:FullCastSpellOnTarget(17174,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30263', 3292, 1)
end

function spell1_30263(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(14443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30263', 609, 1)
end

function spell2_30263(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30263', 688, 1)
end

function Sorts_30263(pUnit, Event)
local choix_sorts_30263 = math.random(0, 2)
if choix_sorts_30263 == 0 then
pUnit:RegisterEvent('spell0_30263', 1, 1)
end
if choix_sorts_30263 == 1 then
pUnit:RegisterEvent('spell1_30263', 1, 1)
end
if choix_sorts_30263 == 2 then
pUnit:RegisterEvent('spell2_30263', 1, 1)
end
end

function mob30263_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30263', math.random(1500, 3000), 1)
end

function mob30263_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30263_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30263_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30263, 1, 'mob30263_Action')
RegisterUnitEvent(30263, 2, 'mob30263_Leave')
RegisterUnitEvent(30263, 3, 'mob30263_Kill')
RegisterUnitEvent(30263, 4, 'mob30263_Die')
